Optimal. Leaf size=49 \[ -\frac {(a+b) \coth ^2(c+d x)}{2 d}-\frac {a \coth ^4(c+d x)}{4 d}+\frac {(a+b) \log (\sinh (c+d x))}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {3710, 12, 3554,
3556} \begin {gather*} -\frac {(a+b) \coth ^2(c+d x)}{2 d}+\frac {(a+b) \log (\sinh (c+d x))}{d}-\frac {a \coth ^4(c+d x)}{4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 3554
Rule 3556
Rule 3710
Rubi steps
\begin {align*} \int \coth ^5(c+d x) \left (a+b \tanh ^2(c+d x)\right ) \, dx &=-\frac {a \coth ^4(c+d x)}{4 d}+\int (a+b) \coth ^3(c+d x) \, dx\\ &=-\frac {a \coth ^4(c+d x)}{4 d}+(a+b) \int \coth ^3(c+d x) \, dx\\ &=-\frac {(a+b) \coth ^2(c+d x)}{2 d}-\frac {a \coth ^4(c+d x)}{4 d}+(a+b) \int \coth (c+d x) \, dx\\ &=-\frac {(a+b) \coth ^2(c+d x)}{2 d}-\frac {a \coth ^4(c+d x)}{4 d}+\frac {(a+b) \log (\sinh (c+d x))}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.24, size = 51, normalized size = 1.04 \begin {gather*} -\frac {2 (a+b) \coth ^2(c+d x)+a \coth ^4(c+d x)-4 (a+b) (\log (\cosh (c+d x))+\log (\tanh (c+d x)))}{4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.71, size = 56, normalized size = 1.14
method | result | size |
derivativedivides | \(\frac {a \left (\ln \left (\sinh \left (d x +c \right )\right )-\frac {\left (\coth ^{2}\left (d x +c \right )\right )}{2}-\frac {\left (\coth ^{4}\left (d x +c \right )\right )}{4}\right )+b \left (\ln \left (\sinh \left (d x +c \right )\right )-\frac {\left (\coth ^{2}\left (d x +c \right )\right )}{2}\right )}{d}\) | \(56\) |
default | \(\frac {a \left (\ln \left (\sinh \left (d x +c \right )\right )-\frac {\left (\coth ^{2}\left (d x +c \right )\right )}{2}-\frac {\left (\coth ^{4}\left (d x +c \right )\right )}{4}\right )+b \left (\ln \left (\sinh \left (d x +c \right )\right )-\frac {\left (\coth ^{2}\left (d x +c \right )\right )}{2}\right )}{d}\) | \(56\) |
risch | \(-a x -b x -\frac {2 a c}{d}-\frac {2 b c}{d}-\frac {2 \,{\mathrm e}^{2 d x +2 c} \left (2 a \,{\mathrm e}^{4 d x +4 c}+b \,{\mathrm e}^{4 d x +4 c}-2 a \,{\mathrm e}^{2 d x +2 c}-2 b \,{\mathrm e}^{2 d x +2 c}+2 a +b \right )}{d \left ({\mathrm e}^{2 d x +2 c}-1\right )^{4}}+\frac {a \ln \left ({\mathrm e}^{2 d x +2 c}-1\right )}{d}+\frac {\ln \left ({\mathrm e}^{2 d x +2 c}-1\right ) b}{d}\) | \(137\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 206 vs.
\(2 (45) = 90\).
time = 0.29, size = 206, normalized size = 4.20 \begin {gather*} a {\left (x + \frac {c}{d} + \frac {\log \left (e^{\left (-d x - c\right )} + 1\right )}{d} + \frac {\log \left (e^{\left (-d x - c\right )} - 1\right )}{d} + \frac {4 \, {\left (e^{\left (-2 \, d x - 2 \, c\right )} - e^{\left (-4 \, d x - 4 \, c\right )} + e^{\left (-6 \, d x - 6 \, c\right )}\right )}}{d {\left (4 \, e^{\left (-2 \, d x - 2 \, c\right )} - 6 \, e^{\left (-4 \, d x - 4 \, c\right )} + 4 \, e^{\left (-6 \, d x - 6 \, c\right )} - e^{\left (-8 \, d x - 8 \, c\right )} - 1\right )}}\right )} + b {\left (x + \frac {c}{d} + \frac {\log \left (e^{\left (-d x - c\right )} + 1\right )}{d} + \frac {\log \left (e^{\left (-d x - c\right )} - 1\right )}{d} + \frac {2 \, e^{\left (-2 \, d x - 2 \, c\right )}}{d {\left (2 \, e^{\left (-2 \, d x - 2 \, c\right )} - e^{\left (-4 \, d x - 4 \, c\right )} - 1\right )}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1216 vs.
\(2 (45) = 90\).
time = 0.37, size = 1216, normalized size = 24.82 \begin {gather*} -\frac {{\left (a + b\right )} d x \cosh \left (d x + c\right )^{8} + 8 \, {\left (a + b\right )} d x \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{7} + {\left (a + b\right )} d x \sinh \left (d x + c\right )^{8} - 2 \, {\left (2 \, {\left (a + b\right )} d x - 2 \, a - b\right )} \cosh \left (d x + c\right )^{6} + 2 \, {\left (14 \, {\left (a + b\right )} d x \cosh \left (d x + c\right )^{2} - 2 \, {\left (a + b\right )} d x + 2 \, a + b\right )} \sinh \left (d x + c\right )^{6} + 4 \, {\left (14 \, {\left (a + b\right )} d x \cosh \left (d x + c\right )^{3} - 3 \, {\left (2 \, {\left (a + b\right )} d x - 2 \, a - b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{5} + 2 \, {\left (3 \, {\left (a + b\right )} d x - 2 \, a - 2 \, b\right )} \cosh \left (d x + c\right )^{4} + 2 \, {\left (35 \, {\left (a + b\right )} d x \cosh \left (d x + c\right )^{4} + 3 \, {\left (a + b\right )} d x - 15 \, {\left (2 \, {\left (a + b\right )} d x - 2 \, a - b\right )} \cosh \left (d x + c\right )^{2} - 2 \, a - 2 \, b\right )} \sinh \left (d x + c\right )^{4} + 8 \, {\left (7 \, {\left (a + b\right )} d x \cosh \left (d x + c\right )^{5} - 5 \, {\left (2 \, {\left (a + b\right )} d x - 2 \, a - b\right )} \cosh \left (d x + c\right )^{3} + {\left (3 \, {\left (a + b\right )} d x - 2 \, a - 2 \, b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{3} + {\left (a + b\right )} d x - 2 \, {\left (2 \, {\left (a + b\right )} d x - 2 \, a - b\right )} \cosh \left (d x + c\right )^{2} + 2 \, {\left (14 \, {\left (a + b\right )} d x \cosh \left (d x + c\right )^{6} - 15 \, {\left (2 \, {\left (a + b\right )} d x - 2 \, a - b\right )} \cosh \left (d x + c\right )^{4} - 2 \, {\left (a + b\right )} d x + 6 \, {\left (3 \, {\left (a + b\right )} d x - 2 \, a - 2 \, b\right )} \cosh \left (d x + c\right )^{2} + 2 \, a + b\right )} \sinh \left (d x + c\right )^{2} - {\left ({\left (a + b\right )} \cosh \left (d x + c\right )^{8} + 8 \, {\left (a + b\right )} \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{7} + {\left (a + b\right )} \sinh \left (d x + c\right )^{8} - 4 \, {\left (a + b\right )} \cosh \left (d x + c\right )^{6} + 4 \, {\left (7 \, {\left (a + b\right )} \cosh \left (d x + c\right )^{2} - a - b\right )} \sinh \left (d x + c\right )^{6} + 8 \, {\left (7 \, {\left (a + b\right )} \cosh \left (d x + c\right )^{3} - 3 \, {\left (a + b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{5} + 6 \, {\left (a + b\right )} \cosh \left (d x + c\right )^{4} + 2 \, {\left (35 \, {\left (a + b\right )} \cosh \left (d x + c\right )^{4} - 30 \, {\left (a + b\right )} \cosh \left (d x + c\right )^{2} + 3 \, a + 3 \, b\right )} \sinh \left (d x + c\right )^{4} + 8 \, {\left (7 \, {\left (a + b\right )} \cosh \left (d x + c\right )^{5} - 10 \, {\left (a + b\right )} \cosh \left (d x + c\right )^{3} + 3 \, {\left (a + b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{3} - 4 \, {\left (a + b\right )} \cosh \left (d x + c\right )^{2} + 4 \, {\left (7 \, {\left (a + b\right )} \cosh \left (d x + c\right )^{6} - 15 \, {\left (a + b\right )} \cosh \left (d x + c\right )^{4} + 9 \, {\left (a + b\right )} \cosh \left (d x + c\right )^{2} - a - b\right )} \sinh \left (d x + c\right )^{2} + 8 \, {\left ({\left (a + b\right )} \cosh \left (d x + c\right )^{7} - 3 \, {\left (a + b\right )} \cosh \left (d x + c\right )^{5} + 3 \, {\left (a + b\right )} \cosh \left (d x + c\right )^{3} - {\left (a + b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right ) + a + b\right )} \log \left (\frac {2 \, \sinh \left (d x + c\right )}{\cosh \left (d x + c\right ) - \sinh \left (d x + c\right )}\right ) + 4 \, {\left (2 \, {\left (a + b\right )} d x \cosh \left (d x + c\right )^{7} - 3 \, {\left (2 \, {\left (a + b\right )} d x - 2 \, a - b\right )} \cosh \left (d x + c\right )^{5} + 2 \, {\left (3 \, {\left (a + b\right )} d x - 2 \, a - 2 \, b\right )} \cosh \left (d x + c\right )^{3} - {\left (2 \, {\left (a + b\right )} d x - 2 \, a - b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )}{d \cosh \left (d x + c\right )^{8} + 8 \, d \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{7} + d \sinh \left (d x + c\right )^{8} - 4 \, d \cosh \left (d x + c\right )^{6} + 4 \, {\left (7 \, d \cosh \left (d x + c\right )^{2} - d\right )} \sinh \left (d x + c\right )^{6} + 8 \, {\left (7 \, d \cosh \left (d x + c\right )^{3} - 3 \, d \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{5} + 6 \, d \cosh \left (d x + c\right )^{4} + 2 \, {\left (35 \, d \cosh \left (d x + c\right )^{4} - 30 \, d \cosh \left (d x + c\right )^{2} + 3 \, d\right )} \sinh \left (d x + c\right )^{4} + 8 \, {\left (7 \, d \cosh \left (d x + c\right )^{5} - 10 \, d \cosh \left (d x + c\right )^{3} + 3 \, d \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{3} - 4 \, d \cosh \left (d x + c\right )^{2} + 4 \, {\left (7 \, d \cosh \left (d x + c\right )^{6} - 15 \, d \cosh \left (d x + c\right )^{4} + 9 \, d \cosh \left (d x + c\right )^{2} - d\right )} \sinh \left (d x + c\right )^{2} + 8 \, {\left (d \cosh \left (d x + c\right )^{7} - 3 \, d \cosh \left (d x + c\right )^{5} + 3 \, d \cosh \left (d x + c\right )^{3} - d \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right ) + d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \tanh ^{2}{\left (c + d x \right )}\right ) \coth ^{5}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 93 vs.
\(2 (45) = 90\).
time = 0.47, size = 93, normalized size = 1.90 \begin {gather*} -\frac {{\left (d x + c\right )} {\left (a + b\right )} - {\left (a + b\right )} \log \left ({\left | e^{\left (2 \, d x + 2 \, c\right )} - 1 \right |}\right ) + \frac {2 \, {\left ({\left (2 \, a + b\right )} e^{\left (6 \, d x + 6 \, c\right )} - 2 \, {\left (a + b\right )} e^{\left (4 \, d x + 4 \, c\right )} + {\left (2 \, a + b\right )} e^{\left (2 \, d x + 2 \, c\right )}\right )}}{{\left (e^{\left (2 \, d x + 2 \, c\right )} - 1\right )}^{4}}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.25, size = 177, normalized size = 3.61 \begin {gather*} \frac {\ln \left ({\mathrm {e}}^{2\,c}\,{\mathrm {e}}^{2\,d\,x}-1\right )\,\left (a+b\right )}{d}-\frac {2\,\left (2\,a+b\right )}{d\,\left ({\mathrm {e}}^{2\,c+2\,d\,x}-1\right )}-x\,\left (a+b\right )-\frac {2\,\left (4\,a+b\right )}{d\,\left ({\mathrm {e}}^{4\,c+4\,d\,x}-2\,{\mathrm {e}}^{2\,c+2\,d\,x}+1\right )}-\frac {8\,a}{d\,\left (3\,{\mathrm {e}}^{2\,c+2\,d\,x}-3\,{\mathrm {e}}^{4\,c+4\,d\,x}+{\mathrm {e}}^{6\,c+6\,d\,x}-1\right )}-\frac {4\,a}{d\,\left (6\,{\mathrm {e}}^{4\,c+4\,d\,x}-4\,{\mathrm {e}}^{2\,c+2\,d\,x}-4\,{\mathrm {e}}^{6\,c+6\,d\,x}+{\mathrm {e}}^{8\,c+8\,d\,x}+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________